<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>问题反馈</title>
    <link rel="stylesheet" href="/layui-v2.5.7/css/layui.css">
    <script src="/layui-v2.5.7/layui.js"></script>
    <script src="/js/jquery-1.12.4.min.js"></script>
    <style>
        p {
            margin: 10px 0;
            font-size: 16px;
        }
        .message{
            text-indent: 2em;
        }

        .info {
            text-indent: 32px;
        }

        .layui-icon {
            margin-left: 30px;
            color: #1E9FFF;
            cursor: pointer;
        }
    </style>
    <link rel="stylesheet" href="/css/cursor.css">
</head>

<body>
    <script>
        // location.href="https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=1622761893@qq.com";
    </script>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md8 layui-col-md-offset2 layui-col-xs10 layui-col-xs-offset1 layui-col-sm10 layui-col-sm-offset1">
                <h2>问题反馈</h2>
                <hr>
                <p>请通过<b>“在线客服”</b>、<b>“邮箱”</b>或<b>“电话联系”</b>网站管理员：</p>
                <p class="info">邮箱：<span>sample@email.test</span><i class="layui-icon layui-icon-share copy-icon" title="复制">&nbsp;&nbsp;复制</i></p>
                <p class="info">电话：<span>12345678910</span><i class="layui-icon layui-icon-share copy-icon" title="复制">&nbsp;&nbsp;复制</i></p>
                <hr>
                <p class="message">感谢您对 “MyHouse智能家居系统” 的支持与反馈，我们将持续为您提供更好的智能家居产品和服务。</p>
            </div>
        </div>
    </div>
    <script>
        layui.use("layer", function () {
            // 点击分享 链接拷贝至剪切板
            $(".copy-icon").click(function () {
                var transfer = document.createElement('input');
                document.body.appendChild(transfer);
                transfer.value = $(this).prev().text();  // 这里表示想要复制的内容
                transfer.focus();
                transfer.select();
                if (document.execCommand('copy')) {
                    document.execCommand('copy');
                }
                transfer.blur();
                document.body.removeChild(transfer);
                layer.msg("已复制到剪切板");
            })
        })

    </script>
</body>

</html>